<include file="Public:pageheader" />
<script type="text/javascript">
function changevalue(value){
	$("#class2").empty();
	$("#class2").append('<option>--选择市--</option>');
	var slt=document.getElementById("class2");
	$.get('__URL__/selectcity',{rand:Math.random(),province_id:value},function(msg){
		msg = eval(msg);
				for(var i in msg){
					  
					   var objOption=document.createElement("OPTION");
					   objOption.value=msg[i].id;
					   objOption.text=msg[i].name;
					   slt.add(objOption);				
				}
				
		}
	);
	
}
function changevalue2(value){
	$("#class3").empty();
	$("#class3").append('<option>--选择区--</option>');
	var slt=document.getElementById("class3");
	$.get('__URL__/selectarea',{rand:Math.random(),city_id:value},function(msg){
		msg = eval(msg);
				for(var i in msg){
					  
					   var objOption=document.createElement("OPTION");
					   objOption.value=msg[i].id;
					   objOption.text=msg[i].name;
					   slt.add(objOption);				
				}
				
		}
	);
	
}
</script>
<div class="content-box">
	<div class="content-box-header">
	<h3>{$Think.lang.add_bury}</h3>
	<div class="clear"></div>
	</div>
	<div class="content-box-content">
		<form action="__URL__/upload" method="post" enctype="multipart/form-data">
			<fieldset>
			<p>
			<input class="text-input small-input" type="hidden" name="type_id" value="2"/>
			</p>
			<p>
			<label>*{%name}:</label>
			<input class="text-input small-input" type="text" name="name"/>
			</p>
			<p>
			<label>*{%gender}：</label>
			<input type="radio" name="gender" value="1" checked="checked"/>男
			<input type="radio" name="gender" value="0"/>女
			</p>
			<p>
			<label>*{%age}:</label>
			<input class="text-input small-input" type="text" name="age"/>	
			</p>
			<!--  <p>
			<label>*{%graveyard_id}：</label>
			<input class="text-input small-input" type="text" name="graveyard_id"/>
			<input type="button" value="选择墓地" onclick="javascript:window.location.href='__APP__/Bury/selectLocation'"/>
			</p>-->
			<p>
			<label>{%charge_person_id}：</label>
			<input type="text" name="charge_person_id">
			<input type="button" value="选择主办人" onclick="javascript:window.location.href='__APP__/Bury/selectEntre'"/>
			</p>
			<p>
			<label>*{%relations_with_charge_person}：</label>
			<select name="relations_with_charge_person">
				<option>--请选择与主办人关系--</option>
				<option value="母亲">母亲</option>
				<option value="父亲">父亲</option>
				<option value="女儿">女儿</option>
				<option value="儿子">儿子</option>
				<option value="爷爷">爷爷</option>
				<option value="奶奶">奶奶</option>
			</select>
			</p>
			<p>
			<label>*{%born_time}：</label>
			<input class="text-input small-input" type="text" name="born_time"/>
			</p>
			<p>
			<label>*{%dead_time}:</label>
			<input class="text-input small-input" type="text" name="dead_time"/>	
			</p>
			<p>
			<label>{%address}：</label>
			<input class="text-input small-input" type="text" name="address"/>
			</p>
			<p>
			<label>{%dead_number}：</label>
			<input class="text-input small-input" type="text" name="dead_number"/>
			</p>
			<p>
			<label>{%image_url}:</label>
			<input type="file" name="image_url"/>
			</p>
			<p>
			<label>{%native}:</label>
						<select name="province_id" id="class1" onchange="changevalue(this.value)">
				<option>--请选择--</option>
				<volist name="province" id="omit">
				<option value="{$omit.id}">{$omit.name}</option>
				</volist>
			</select>
			<select name="city_id" id="class2" onchange="changevalue2(this.value)">
			<option>--选择市--</option>

			</select>市
			<select name="area_id" id="class3">
			<option>--选择区--</option>
			</select>区
			</p>
			</p>
			<p>
			<label>{%job}：</label>
			<input class="text-input small-input" type="text" name="job"/>
			</p>
			<p>
			<label>{%introduction}:</label>
			<textarea name="introduction"></textarea>
			</p>
			<p>
			<label>{%remark}：</label>
			<textarea name="remark"></textarea>
			</p>
			<p>

			</p>
			<p>
				
				<input class="button" type="submit" value="{%submit}" />
				<input class="button" type="reset" value="{%reset}" />
			</p>
			</fieldset>
		</form>
	</div>
</div>
<include file="Public:footer" />